<template>
	<view class="container">
		<!-- 用户信息部分 -->
		<view class="user-info">
			<image class="avatar" src="/static/logo.png" />
			<view class="info">
				<text class="name">蒙娜丽莎</text>
				<text class="phone">188****5505</text>
			</view>
			<view class="arrow">➡️</view>
		</view>

		<!-- 账户金额显示部分 -->
		<view class="account-balance">
			<text class="label">账户金额：</text>
			<text class="amount">￥5999.00</text>
		</view>

		<!-- 快捷菜单部分 -->
		<view class="menu">
			<view class="menu-item" @click="gotoDetail('工资明细')">
				<view class="menu-icon">
					<image class="icon" src="/static/logo.png" />
				</view>
				<text class="menu-text">工资明细</text>
				<text class="menu-arrow">➡️</text>
			</view>
			<view class="menu-item" @click="gotoDetail('收入明细')">
				<view class="menu-icon">
					<image class="icon" src="/static/logo.png" />
				</view>
				<text class="menu-text">收入明细</text>
				<text class="menu-arrow">➡️</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
			gotoDetail(type) {
				// 跳转到对应明细页面
				console.log(`跳转到 ${type}`);
				// 具体实现可以使用uni.navigateTo或其他方式
			}
		}
	};
</script>

<style scoped>
	.container {
		display: flex;
		flex-direction: column;
		background-color: #f5f5f5;
		height: 100%;
	}

	.user-info {
		display: flex;
		align-items: center;
		padding: 40rpx 30rpx;
		background: (180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
		border-radius: 20rpx;
		margin: 20rpx 20rpx 0;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
	}

	.avatar {
		width: 120rpx;
		height: 120rpx;
		border-radius: 60rpx;
	}

	.info {
		flex: 1;
		margin-left: 20rpx;
		display: flex;
		flex-direction: column;
	}

	.name {
		font-family: HelloFont, HelloFont;
		font-weight: normal;
		font-size: 34rpx;
		color: #2E2E2E;
		line-height: 44rpx;
		font-style: normal;
	}

	.phone {
		font-size: 32rpx;
		color: #666;
		margin-top: 10rpx;
	}

	.arrow {
		font-size: 36rpx;
		color: #999;
	}

	.account-balance {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		background: #333;
		color: #fff;
		padding: 40rpx 30rpx;
		border-radius: 20rpx;
		margin: 20rpx 20rpx 0;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
	}

	.label {
		font-size: 32rpx;
		margin-bottom: 10rpx;
		color: #F5E1D4;
	}

	.amount {
		font-size: 34rpx;
		font-weight: bold;
		color: #F5E1D4;
	}

	.menu {
		margin-top: 20rpx;
	}

	.menu-item {
		display: flex;
		align-items: center;
		background-color: #fff;
		padding: 30rpx 20rpx;
		border-bottom: 1rpx solid #f4f4f4;
		justify-content: space-between;
	}

	.menu-item:last-child {
		border-bottom: none;
	}

	.menu-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 50rpx;
		height: 50rpx;
		margin-right: 20rpx;
	}

	.icon {
		width: 50rpx;
		height: 50rpx;
	}

	.menu-text {
		flex: 1;
		font-size: 32rpx;
		color: #333;
	}

	.menu-arrow {
		font-size: 32rpx;
		color: #999;
	}
</style>